package Lono::Recipe::Renderer::Wiki;

use warnings;
use strict;

use Data::Dumper;

use constant TEMPLATE_DIR => '/Users/lavallee/projects/lono-recipe/template';

use constant WIKI_TEMPLATE => 'renderer/wiki.tmpl';

sub render {
    my ( $class, $recipe ) = @_;

    warn Dumper( $recipe ); 

    my $text = "";
    my $template = Template->new({
        'INCLUDE_PATH' => TEMPLATE_DIR,
        'OUTPUT' => \$text
    });

    $template->process( WIKI_TEMPLATE, {'recipe' => $recipe} );
    
    return $text;
}

1;
